import request from '@/utils/request'

// 佛学知识列表
export function apiKnowledgeList(params) {
    return request({
        url: '/cmsKnowledge/list',
        method: 'get',
        params
    })
}

// 新增佛学知识
export function apiKnowledgeAdd(data) {
    return request({
        url: '/cmsKnowledge/add',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 编辑佛学知识
export function apiKnowledgeEdit(data) {
    return request({
        url: '/cmsKnowledge/update',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 删除佛学知识
export function apiKnowledgeDel(params) {
    return request({
        url: '/cmsKnowledge/delete',
        method: 'get',
        params
    })
}